<html>
	<head>
		<title>Welcome to GASCIAN</title>
		<?php 
			$this->load->view('partial/headlinks');
		?>
	</head>
	<body>
		<div id="doc-container" class="width-normal margin-auto">
			<div id="inner-doc-container" class="">
				<?php 
					$this->load->view('partial/header');
				?>
				<?php 
					$this->load->view('partial/navmenu');
				?>
				<div class="hr margin"></div>
				<div class="table-block">
					<div class="table-block-cell myprofile-left-menu border transition">
					<?php 
					$data1['activeClass'] = $activeClass;
					$this->load->view('partial/myprofileleftmenu', $data1);
					?>
					</div><!-- table-block-cell -->
					<div class="search-result table-block-cell">
					<div class="result-container border">
					<?php 
						echo (isset($msg))?$msg:"";
					?>	
						<form action="<?php echo base_url();?>register/changepassword" method="post" class="form changepassword">

				              <div class="formFieldBlock">
				                <label class="form_label">New Password : </label>
				                <input class="required" type="password" name="password" class="form_input" placeholder="Enter New Password" value="">
				                <div class="error requiredError">
									The above field is required
								</div>
				              </div>
				
			
				              <div class="formFieldBlock">
				                <label class="form_label">Confirm Password : </label>
				                <input  class="required" type="password"  name="cpassword" class="form_input" placeholder="Re-enter New Password" value="">
				                <div class="error requiredError">
									The above field is required
								</div>
				              </div>
				
			
			                  <div class="formFieldBlock">
			                  	<input value="<?php echo $this->sessionfunctions->getSessionUserId();?>" name="userid" type="hidden">
				                <input type="submit" class="form_submit" value="Change Password">
				              </div>
	           			</form>


						<form class="registration_form" method="post" action="<?php echo base_url();?>register/updateuser">
							<?php 
								$this->load->view("partial/registration");
							?>
							<input value="<?php echo $this->sessionfunctions->getSessionEmail();?>" name="email" type="hidden">
							<input value="<?php echo $this->sessionfunctions->getSessionUserId();?>" name="userid" type="hidden">
						    <input class="button button-primary" value="Save" name="Submit" type="submit">
							<br/><br/>
						</form>


					</div><!-- result-container -->
					</div><!-- search-result -->
				</div><!-- table-block -->
			</div><!-- inner-doc-container -->
		</div><!-- doc-container -->
		<?php 
			$this->load->view('partial/footer.php');
		?>	
	<script type="text/javascript">
	$(document).ready(function(){
		$(".accordian ul li.header").click(function(e){
			if($(this).hasClass('header')){
				if($(this).hasClass('active')){
					$(this).removeClass('active');
				}else{
					$(this).addClass('active');
				}
			}
		});

		bindValidation("changepassword");
		bindValidation("registration_form");
		
	});
	</script>
	</body>
</html>
